//index.js
//获取应用实例
const http=require('../../utils/http');
const app = getApp();

Page({
    data: {
        userInfo: {},
        hasUserInfo: false,
        list: [
            {icon:'activity',name:'记事本',page:'/pages/notepad/index'},
            {icon:'document',name:'看小说',page:'/pages/novel/index'},
            {icon:'add',name:'添加新工具',page:''}
        ]
    },
    onLoad: function () {
        http.userRequest({router:'getData'},function(data){
            console.log(data);
        });
    },
    girdClick(e){
        wx.navigateTo({
            url:e.currentTarget.dataset.page
        })
    },
    methods:{}
});
